<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ok</title>
    <script crossorigin="anonymous" integrity="sha512-WNLxfP/8cVYL9sj8Jnp6et0BkubLP31jhTG9vhL/F5uEZmg5wEzKoXp1kJslzPQWwPT1eyMiSxlKCgzHLOTOTQ==" src="https://lib.baomitu.com/jquery/3.5.1/jquery.js"></script>
</head>
<body>
登录成功！
    <button id="loginOut">退出登录</button>
<script>
    $(function () {
        $('#loginOut').click(function () {
            localStorage.removeItem('userInfo')
            window.location.href='/'
        })
    })
</script>
</body>
</html>